﻿<local:DocumentBase x:Class="WPFExcelReport.SXNAB02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
                    xmlns:ChartEx="clr-namespace:WPFExcelReport.Chart;assembly=ITXVIEWS"
                    xmlns:MAH="http://metro.mahapps.com/winfx/xaml/controls"
                    xmlns:WB="clr-namespace:WPFExcelReport;assembly=TWBBST"
                    xmlns:ABF="clr-namespace:WPFExcelReport;assembly=TABFOLGE"
                    xmlns:WK="clr-namespace:WPFExcelReport;assembly=TWBDAT"
                    xmlns:WD="clr-namespace:WPFExcelReport;assembly=TWDECK" 
                    xmlns:LS="clr-namespace:WPFExcelReport;assembly=TLIEFDAT" 
                    xmlns:KD="clr-namespace:WPFExcelReport;assembly=TKDSTAMM"  
                    xmlns:ZB="clr-namespace:WPFExcelReport;assembly=TVKZUAB"   
                    xmlns:VVT="clr-namespace:WPFExcelReport;assembly=TVVTLIEF"
                    xmlns:VV="clr-namespace:WPFExcelReport;assembly=TVVLIEF"  
                    xmlns:VP="clr-namespace:WPFExcelReport;assembly=TVVPACK" 
                    xmlns:VRP="clr-namespace:WPFExcelReport;assembly=TVRPOS"
                    xmlns:WS="clr-namespace:WPFExcelReport;assembly=TWASTAMM"
                    xmlns:WF="clr-namespace:WPFExcelReport;assembly=TWAFARBEN"
                    xmlns:VA="clr-namespace:WPFExcelReport;assembly=TVAART"
                    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN" 
                    xmlns:VK="clr-namespace:WPFExcelReport;assembly=TVKKOPF" 
                    xmlns:VKP="clr-namespace:WPFExcelReport;assembly=TVKPOS"  
                    xmlns:AB="clr-namespace:WPFExcelReport;assembly=TABPOS"  
                    xmlns:EK="clr-namespace:WPFExcelReport;assembly=TEKKOPF" 
                    xmlns:EKP="clr-namespace:WPFExcelReport;assembly=TEKPOS"  
                    xmlns:MU="clr-namespace:WPFExcelReport;assembly=TABAUFM"  
                    xmlns:WBW="clr-namespace:WPFExcelReport;assembly=TICC_WBBEW" 
                    xmlns:ZA="clr-namespace:WPFExcelReport;assembly=TZABED"  
                    xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"      
                    FontSize="14"
                    Name="TV"
                    Loaded="Window_Loaded"
>
    <local:DocumentBase.Resources>
        <ucd:TextTrimmingConverter x:Key="Trim"/>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:NOTConverter x:Key="not"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:String2ColorConverter  x:Key="str2color"/>
    </local:DocumentBase.Resources>
    <ex:AniScrollViewer>
        <Grid >
            <Grid.RowDefinitions>
                <RowDefinition   Height="1*" />
                <RowDefinition   Height="2*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <AB:TAB02SXN Grid.Row="0" Grid.Column="0"    Name="cVK02"
                      />
            <Grid  Grid.Row="1" Grid.Column="0" Visibility="{Binding IsShowMaster,ElementName=cVK02,Converter={StaticResource bv}}">
                <Grid.RowDefinitions>
                    <RowDefinition   Height="1*" />
                    <RowDefinition   Height="Auto" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"></ColumnDefinition>
                    <ColumnDefinition Width="2*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <AB:TAB05 Grid.Row="0"  Name="cVKP" 
                        ORDERNUM="{Binding KEY,ElementName=cVK02}"    
                         MinWidth="200" MinHeight="50" />
                <WD:TWDECK   Grid.Row="1" Name="cWD"
                         ORDERNUM="{Binding AUF,ElementName=cVKP}"
                        IsOrder="False"  />
                <MAH:MetroTabControl Grid.Row="0" Grid.RowSpan="2" Grid.Column="1" >
                    <MAH:MetroTabItem Header="{Binding Source={Localization:Translate Word=加工流程}}">                        
                            <ABF:TAV13 Grid.Row="1" Grid.Column="0"
                                  EXAUF="{Binding KEY,ElementName=cVKP}" 
                                 IsAuto="False"  />                        

                    </MAH:MetroTabItem>
                    <MAH:MetroTabItem  Header="{Binding Source={Localization:Translate Word=客户信息}}"
                                       Visibility="Collapsed"
                                       >
                        <KD:TKD Grid.Row="1" Grid.Column="0" Name="cKD"
                            ORDERNUM="{Binding KUNDNR,ElementName=cVKP}"    
                            />
                    </MAH:MetroTabItem>
                    <MAH:MetroTabItem  Header="{Binding Source={Localization:Translate Word=代理折扣附加费}}">
                        <ZB:TVKZUAB Grid.Row="1" Grid.Column="2" Name="cZBP" 
                        Margin="10"
                        IsAuto="True"   
                        MaxHeight="300" 
                        VKZSA="VK"
                       ORDERNUM="{Binding AUF,ElementName=cVKP}"  />
                    </MAH:MetroTabItem>
                    <MAH:MetroTabItem  Header="{Binding Source={Localization:Translate Word=品种信息}}">
                        <StackPanel>
                            <VF:TVA10 Name="cSVA10" Grid.Column="0"
                              ORDERNUM="{Binding VART,ElementName=cVKP}" />
                            <WS:TWASTAMM  Grid.Row="1" Grid.Column="3"  
                           IsAuto="True" 
                           ORDERNUM="{Binding PRART,ElementName=cSVA10}"/>
                        </StackPanel>

                    </MAH:MetroTabItem>
                </MAH:MetroTabControl>
            </Grid>

            <Expander Grid.Row="1" Grid.RowSpan="99" Grid.Column="0" 
                    Opacity="100"
                  IsExpanded="{Binding IsShowTG,ElementName=cVK02}"
                  Visibility="{Binding IsShowTG,ElementName=cVK02,Converter={StaticResource bv}}" >
                <Expander.Header>
                    <WrapPanel>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=统计}}"></TextBlock>
                    </WrapPanel>
                </Expander.Header>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <WrapPanel>
                        <Button Content="{Binding Source={Localization:Translate Word=初始化}}" Height="33" Margin="10,0,0,0"  Width="122" Panel.ZIndex="8"
                        Click="btnCharting_Click"/>
                    </WrapPanel>
                    <ChartEx:ChartEx0004 Grid.Row="1"   Name="Chart04" />
                </Grid>
            </Expander>
            <Expander Grid.Row="1" Grid.RowSpan="99"  Grid.Column="0"  
                 Opacity="100"
                  IsExpanded="{Binding IsShowAB,ElementName=cVK02}"              
                  Visibility="{Binding IsShowAB,ElementName=cVK02,Converter={StaticResource bv}}" >
                <Expander.Header>
                    <WrapPanel>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=生产}}"></TextBlock>
                    </WrapPanel>
                </Expander.Header>
                <AB:TABJLTVW CART="{Binding PRART,ElementName=cWD}"
                             Height="400"
                          IsAuto="{Binding IsShowAB,ElementName=cVK02}"
                         />
            </Expander>
            <Expander Grid.Row="1" Grid.RowSpan="99"  
                 Opacity="100"
                  IsExpanded="{Binding IsShowSY,ElementName=cVK02}"              
                  Visibility="{Binding IsShowSY,ElementName=cVK02,Converter={StaticResource bv}}" >
                <Expander.Header>
                    <WrapPanel>

                        <VF:TVAFSWTXT CART="{Binding PRART,ElementName=cWD}"                      
                             Height="400"
                          Name="cT09" Visibility="Collapsed" 
                          IsShowTxt="{Binding IsShowSY,ElementName=cVK02}"
                         />
                        <VA:TPFSWTXT CART="{Binding PRART,ElementName=cWD}"
                             Height="400"
                          Name="cT06" Visibility="Collapsed"
                          IsShowTxt="{Binding IsShowSY,ElementName=cVK02}"
                         />

                    </WrapPanel>
                </Expander.Header>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock  Grid.Row="0" Grid.Column="0"  Text="{Binding Source={Localization:Translate Word=S样评价}}"></TextBlock>
                    <TextBlock Grid.Row="0" Grid.Column="1"   Text="{Binding Source={Localization:Translate Word=生产评价}}"></TextBlock>
                    <TextBlock Grid.Row="1" Grid.Column="0" Text="{Binding INFO, ElementName=cT06}"></TextBlock>
                    <TextBlock  Grid.Row="1" Grid.Column="1"  Text="{Binding INFO, ElementName=cT09}"></TextBlock>
                </Grid>

            </Expander>
            <Expander Grid.Row="1" Grid.RowSpan="99"  
                 Opacity="100"
                  IsExpanded="{Binding IsShowVK,ElementName=cVK02}"              
                  Visibility="{Binding IsShowVK,ElementName=cVK02,Converter={StaticResource bv}}" >
                <Expander.Header>
                    <WrapPanel>
                        <TextBlock Text="订单信息"></TextBlock>

                    </WrapPanel>
                </Expander.Header>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="1*"></RowDefinition>
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <VK:TJLTVK04 Name="cVK04" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
                         ORDERNUM="{Binding Path=AUF,ElementName=cVK02}"
                         IsAutoVRK="True"
                         WAEHRSL="{Binding WAEHRSL,ElementName=cVK02}"
                        IsMTR="True" 
                      />
                    <ZA:TZA03 Grid.Row="1" Grid.Column="0"  ORDERNUM="{Binding ZAHLBED,ElementName=cVK04}"  /> 

                    <TXT:TXTITX Grid.Row="1"   Grid.Column="1"
                            Name="cTxt" 
                            TART="VKT"
                            IsAuto="False"
                            IsInfoOneLine="True"
                            SIND="{Binding TXTISIND,ElementName=cVK04}"   
                            DEFTXT="{Binding DEFTXT,ElementName=cVK04}"  
                            Width="Auto" HorizontalAlignment="Left"/>

                </Grid>
            </Expander>

            <Expander Grid.Row="0" Grid.RowSpan="999" Grid.Column="1" 
                  ExpandDirection="Right"
                   IsExpanded="{Binding IsShowVV,ElementName=cVK02}"
                  Visibility="{Binding IsShowVV,ElementName=cVK02,Converter={StaticResource bv}}" >
                <Expander.Header>
                    <WrapPanel>
                        <TextBlock Text="{Binding Source={Localization:Translate Word=发货}}"></TextBlock>
                    </WrapPanel>
                </Expander.Header>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="Auto"></RowDefinition>
                    </Grid.RowDefinitions>
                    <VVT:TVVTLIEF Name="cVVT" 
                              MaxWidth="300"
                              Grid.Row="0" 
                              Grid.Column="0"                       
                       VKP="{Binding AUF,ElementName=cVKP}" 
                    />
                    <WrapPanel  Grid.Row="1"   >
                        <CheckBox Content="{Binding Source={Localization:Translate Word=已留位}}" Name="IsWB06" ></CheckBox>
                        <CheckBox Content="{Binding Source={Localization:Translate Word=已确认}}"  Name="IsWZ04"  ></CheckBox>
                        <CheckBox Content="{Binding Source={Localization:Translate Word=已发货}}"  Name="IsKO"  ></CheckBox>
                    </WrapPanel>
                    <WB:TWB2WH Grid.Row="2"   SLO="01" SLB="CP" 
                         IsCanNew="False"  
                         Name="cWB06"
                         IsVV="False" 
                          Visibility="{Binding IsChecked,ElementName=IsWB06,Converter={StaticResource bv}}"
                         IsShow="{Binding IsChecked,ElementName=IsWB06}"
                         ORDERNUM="{Binding KEY,ElementName=cVVT}"
                         />
                    <WB:TWB2WH  Grid.Row="3"   Name="cWZ04" SLO="01" SLB="CW" MinWidth="200"
                         MinHeight="50" 
                               Visibility="{Binding IsChecked,ElementName=IsWZ04,Converter={StaticResource bv}}"
                         IsShow="{Binding IsChecked,ElementName=IsWZ04}"
                         ORDERNUM="{Binding KEY,ElementName=cVVT}"
             />
                    <WB:TWB2WH Grid.Row="4"  Name="cKO" 
                              Visibility="{Binding IsChecked,ElementName=IsKO,Converter={StaticResource bv}}"
                         IsShow="{Binding IsChecked,ElementName=IsKO}"
                         SLO="01" SLB="KO" MinWidth="200" MinHeight="50" 
                         ORDERNUM="{Binding KEY,ElementName=cVVT}"/>
                </Grid>
            </Expander>
        </Grid>
    </ex:AniScrollViewer>
</local:DocumentBase>
    